﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" ClientIDMode="Static" AutoEventWireup="true" CodeBehind="JCCD_Query_JC.aspx.cs" Inherits="CoolERP_Web.User.JCCD_Query_JC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../Scripts/lhgdialog/lhgcore.min.js" type="text/javascript"></script>
<script src="../Scripts/lhgdialog/lhgdialog.js" type="text/javascript"></script>
<script type="text/javascript">
    function queryMX(id) {
        var dg = new J.dialog({ id: 'select', title: '进仓单明细', page: '<%=MX_URL %>?id=' + id, iconTitle: false, cover: true, btnBar: false, rang: true, autoSize: true, width: 900, height: 650 });
        dg.ShowDialog();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b><%=DJ_Name%>进仓单</b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <ul class=tags>
                <li class=liTitle><div>查询条件</div></li>
            </ul>
            <table class="grvCSS" cellspacing="0" border="1" style="width:100%;border-collapse:collapse;">
                <tr>
                    <td style="text-align:right">编号：</td>
                    <td style="text-align:left"><asp:TextBox ID="tbBH" runat="server" CssClass="textbox" MaxLength="64"></asp:TextBox></td>
                    <td style="text-align:right">进仓时间：</td>
                    <td style="text-align:left"><asp:TextBox ID="txtS_Time" runat="server" CssClass="textbox Wdate" Width=90px onclick="WdatePicker({dateFmt: 'yyyy-MM-dd'});"/>
                        —— <asp:TextBox ID="txtE_Time" runat="server" CssClass="textbox Wdate" Width=90px onclick="WdatePicker({dateFmt: 'yyyy-MM-dd'});"/></td>
                    <td><asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/Images/Common/btn_query0.png" onclick="btnQuery_Click" /></td>
                </tr>
                <tr>
                    <td style="text-align:right">验收部门：</td>
                    <td style="text-align:left"><asp:DropDownList ID="ddlDepartments" runat="server" CssClass="dropdown" onchange="BindStaff('ddlRSR',this.value,'请选择')"/></td>  
                    <td style="text-align:right">验收人：</td>
                    <td style="text-align:left"><asp:DropDownList ID="ddlRSR" runat="server" CssClass="dropdown" Width="150px"></asp:DropDownList></td>
                    <td><asp:ImageButton ID="btnReset" runat="server" ImageUrl="~/Images/Common/btn_reset0.png" OnClick="btnReset_Click" /></td>
                </tr>
            </table>
            <ul class=tags>
                <li class=liLeft><b><%=DJ_Name%>进仓单列表</b></li>
                <li class=selTag onclick="selTag(this);"><div><asp:LinkButton ID="LinkButton1" Text="待确认进仓单" runat="server" CommandArgument="0" OnCommand="LinkButton_Command"/></div></li>
                <li onclick="selTag(this);"><div><asp:LinkButton ID="LinkButton2" Text="已确认进仓单" runat="server" CommandArgument="1" OnCommand="LinkButton_Command"/></div></li>
                <li class=liRight><asp:HyperLink ID="hyplAdd" runat="server"><img src="../Images/Common/btn_add0.png" border=0 /></asp:HyperLink></li>
            </ul>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>            
            <asp:GridView ID="GridView1" DataKeyNames="ID" Width=100% ClientIDMode=Static runat="server" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
                PageSize=20 OnSelectedIndexChanging="GridView1_SelectedIndexChanging" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                <asp:BoundField DataField="BH" HeaderText="编号"/>
                <asp:BoundField DataField="BMMC" HeaderText="验收部门"/>
                <asp:BoundField DataField="RYMC" HeaderText="验收人"/>
                <asp:BoundField DataField="RQ" HeaderText="进仓时间"/>
                <asp:BoundField DataField="JCCYY" HeaderText="进仓原因"/>
                <asp:BoundField DataField="GLDJID" HeaderText="关联单据"/>
                <asp:TemplateField HeaderText="状态">
                <ItemTemplate><asp:Label ID="lblZT" runat="server" ForeColor="Red" Text="待确认"></asp:Label>
                    <asp:ImageButton ID="btnConfirm" runat="server" CommandName="Select" ImageUrl="~/Images/Common/btn_ok0.png" 
                        OnClientClick="javascript:return confirm('确认后将更新库存数量，您真的要确认吗？');" />
                </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="查看明细">
                    <ItemTemplate><input type=button value="明细" class=btn_s onclick="queryMX('<%#Eval("ID") %>')" /></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>                        
                        <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/Common/btn_edit0.png" />                        
                        <asp:ImageButton ID="btnDelete" runat="server" CommandName="Delete" ImageUrl="~/Images/Common/btn_del0.png" 
                            OnClientClick="javascript:return confirm('您确认要删除吗？');" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerSettings Visible=false />
            </asp:GridView>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
            </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="AspNetPager1" EventName="PageChanged" />
                    <asp:AsyncPostBackTrigger ControlID="LinkButton1" EventName="Command" />
                    <asp:AsyncPostBackTrigger ControlID="LinkButton2" EventName="Command" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
